package com.simtop.service.impl;



import com.simtop.dao.CjMapper;
import com.simtop.service.CjService;
import com.simtop.vo.experiment.UserCj;
import com.simtop.vo.uservo.UserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class CjServerImpl implements CjService {

    @Autowired
    private CjMapper cjMapper;


    @Override
    public void save(String cjname, int cjtime, double zlgh, double zzgh, double fyzj, double zskh, double zf , Integer id) {
         cjMapper.save(cjname,cjtime,zlgh,zzgh,fyzj,zskh,zf,id);
    }

    @Override
    public List<UserCj> findall() {
        return cjMapper.findall();
    }

    @Override
    public List<UserCj> findmyself(String username) {


        return cjMapper.findmyself(username);
    }

    @Override
    public void delectOne(int cjid) {
         cjMapper.delectOne(cjid);
    }

    @Override
    public List<UserCj> findall2(UserVo userVo) {
        return cjMapper.findall2(userVo);
    }
}
